package com.jkt.rms.business.base;

import java.lang.Comparable;
import java.io.Serializable;


/**
 * This is an object that contains data related to the resource_project_linkup table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="resource_project_linkup"
 */

public abstract class BaseResourceProjectLinkup  implements Comparable, Serializable {

	public static String REF = "ResourceProjectLinkup";
	public static String PROP_STATUS = "status";
	public static String PROP_RESOURCE_PROJECT_LINKUP_ID = "resourceProjectLinkupId";
	public static String PROP_UPDATED_DATE = "updatedDate";
	public static String PROP_UPDATED_BY = "updatedBy";
	public static String PROP_PROJECT_ID = "projectId";
	public static String PROP_EFF_END_DATE = "effEndDate";
	public static String PROP_EFF_START_DATE = "effStartDate";
	public static String PROP_RESOURCE_ID = "resourceId";


	// constructors
	public BaseResourceProjectLinkup () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseResourceProjectLinkup (int resourceProjectLinkupId) {
		this.setResourceProjectLinkupId(resourceProjectLinkupId);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private int resourceProjectLinkupId;

	// fields
	private int resourceId;
	private int projectId;
	private java.util.Date effStartDate;
	private java.util.Date effEndDate;
	private java.lang.Character status;
	private java.util.Date updatedDate;
	private java.lang.String updatedBy;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="assigned"
     *  column="resource_project_linkup_id"
     */
	public int getResourceProjectLinkupId () {
		return resourceProjectLinkupId;
	}

	/**
	 * Set the unique identifier of this class
	 * @param resourceProjectLinkupId the new ID
	 */
	public void setResourceProjectLinkupId (int resourceProjectLinkupId) {
		this.resourceProjectLinkupId = resourceProjectLinkupId;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: resource_id
	 */
	public int getResourceId () {
		return resourceId;
	}

	/**
	 * Set the value related to the column: resource_id
	 * @param resourceId the resource_id value
	 */
	public void setResourceId (int resourceId) {
		this.resourceId = resourceId;
	}



	/**
	 * Return the value associated with the column: project_id
	 */
	public int getProjectId () {
		return projectId;
	}

	/**
	 * Set the value related to the column: project_id
	 * @param projectId the project_id value
	 */
	public void setProjectId (int projectId) {
		this.projectId = projectId;
	}



	/**
	 * Return the value associated with the column: eff_start_date
	 */
	public java.util.Date getEffStartDate () {
		return effStartDate;
	}

	/**
	 * Set the value related to the column: eff_start_date
	 * @param effStartDate the eff_start_date value
	 */
	public void setEffStartDate (java.util.Date effStartDate) {
		this.effStartDate = effStartDate;
	}



	/**
	 * Return the value associated with the column: eff_end_date
	 */
	public java.util.Date getEffEndDate () {
		return effEndDate;
	}

	/**
	 * Set the value related to the column: eff_end_date
	 * @param effEndDate the eff_end_date value
	 */
	public void setEffEndDate (java.util.Date effEndDate) {
		this.effEndDate = effEndDate;
	}



	/**
	 * Return the value associated with the column: status
	 */
	public java.lang.Character getStatus () {
		return status;
	}

	/**
	 * Set the value related to the column: status
	 * @param status the status value
	 */
	public void setStatus (java.lang.Character status) {
		this.status = status;
	}



	/**
	 * Return the value associated with the column: updated_date
	 */
	public java.util.Date getUpdatedDate () {
		return updatedDate;
	}

	/**
	 * Set the value related to the column: updated_date
	 * @param updatedDate the updated_date value
	 */
	public void setUpdatedDate (java.util.Date updatedDate) {
		this.updatedDate = updatedDate;
	}



	/**
	 * Return the value associated with the column: updated_by
	 */
	public java.lang.String getUpdatedBy () {
		return updatedBy;
	}

	/**
	 * Set the value related to the column: updated_by
	 * @param updatedBy the updated_by value
	 */
	public void setUpdatedBy (java.lang.String updatedBy) {
		this.updatedBy = updatedBy;
	}





	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.jkt.rms.business.ResourceProjectLinkup)) return false;
		else {
			com.jkt.rms.business.ResourceProjectLinkup resourceProjectLinkup = (com.jkt.rms.business.ResourceProjectLinkup) obj;
			return (this.getResourceProjectLinkupId() == resourceProjectLinkup.getResourceProjectLinkupId());
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			return (int) this.getResourceProjectLinkupId();
		}
		return this.hashCode;
	}

	public int compareTo (Object obj) {
		if (obj.hashCode() > hashCode()) return 1;
		else if (obj.hashCode() < hashCode()) return -1;
		else return 0;
	}

	public String toString () {
		return super.toString();
	}


}